<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

	Nonzero1.0 by nodethirtythree design
	http://www.nodethirtythree.com
	missing in a maze

-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>hellaworld-rev</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<%= stylesheet_link_tag  "style" %>
<%= stylesheet_link_tag  "style_red", :title => "Red" %>
<%= stylesheet_link_tag  "style_blue", :rel => "alternate stylesheet", :title => "Blue" %>
<%= stylesheet_link_tag  "style_green", :rel => "alternate stylesheet", :title => "Green" %>
<%= stylesheet_link_tag  "style_brown", :rel => "alternate stylesheet", :title => "Brown" %>
<%= stylesheet_link_tag  "style_magenta", :rel => "alternate stylesheet", :title => "Magenta" %>

<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "effects" %>
<%= javascript_include_tag "styleswitcher"  %>
<script type="text/javascript">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>
</head>
<body>
<div id="adv_status_bar"></div>
<script type="text/javascript">
  $('adv_status_bar').hide();
</script>
<div id="header">
	<div id="header_inner" class="fluid">

<%= render :partial => 'application/status' if session[:user]%>
		<div id="logo">
			<h1><span>hellaworld</span>-rev</h1>
			<h2>By NodeThirtyThree Design, zwx Code. What's your flavor?
            <a href="#" onclick="setActiveStyleSheet('Red'); return false;">fraise</a>,
            <a href="#" onclick="setActiveStyleSheet('Green'); return false;">beuh</a>,
            <a href="#" onclick="setActiveStyleSheet('Blue'); return false;">marin</a>,
            <a href="#" onclick="setActiveStyleSheet('Magenta'); return false;">gay</a>, or
            <a href="#" onclick="setActiveStyleSheet('Brown'); return false;">caca</a> ?
            </h2>
		</div>

		<div id="menu">
			<ul>
				<li><%= link_to('Accueil','/', :class => (@active_tab ? '' : 'active')) %></li>
                <% if session[:user] %>
                  <li><%= link_to 'Vos trésors', user_medias_path(session[:user]), :class =>((@active_tab == session[:user].id) ? 'active': '')%> </li>
                  <li><%= link_to Category.master_cat_1.label, category_medias_path(Category.master_cat_1), :class =>((@active_tab == Category.master_cat_1.id) ? 'active': '') %></li>
                  <li><%= link_to Category.master_cat_2.label, category_medias_path(Category.master_cat_2), :class =>((@active_tab == Category.master_cat_2.id) ? 'active': '') %></li>
                  <li><%= link_to Category.master_cat_3.label, category_medias_path(Category.master_cat_3), :class =>((@active_tab == Category.master_cat_3.id) ? 'active': '') %></li>
                <% end %>
			</ul>
		</div>

	</div>
</div>

<div id="main">

	<div id="main_inner" class="fluid">
        <% if flash[:notice] %><%= flash[:notice] %><% end %>
		<div id="primaryContent_2columns">

			<div id="columnA_2columns">
                <%= yield %>
			</div>

		</div>

		<div id="secondaryContent_2columns">


			<div id="columnC_2columns">

				<h4><span>Search</span></h4>

				<div id="search">
                  <% form_tag({:controller => 'medias', :action => 'search'},:method => :get) do%>
                    <%= text_field_tag('keywords','', :class => 'text') %>
                    <%= submit_tag('Go', :class => 'button')  %>
                  <% end %>
				</div>
                <br class="clear" />
				<h4><span>Con</span> cernant vous</h4>
				<p><%= login_div() %> </p>

                <%= yield(:columnB)%>

                <% if session[:user] %>
                  <h4><span>cate</span> gories</h4>
                  <%= get_roots_categories_li(ROOTS_CATEGORIES) %>
                  <h4><span>Ajouter</span> un NZB</h4>
                  <% form_tag('/nzb/upload', :multipart => true, :id =>'upload_form' ) do %>
                    <ul class="links">
                    <li class="first"><%= get_categories_select(ROOTS_CATEGORIES) %> </li>
                    <li><%= file_field_tag "file" , :size => 3 %><br></li>
                    <li><%= submit_tag('Envoyer NZB') %></li>
                    </ul>
                  <% end %>
                <a href="http://code.google.com/p/hellaworld-rev/"><h4><span>code</span> .google.com</h4></a>
                <%=  svnchanges_ul() %>
                <% end %>
                
				<h4><span>Cool</span> Stuff</h4>
				<ul class="links">
				<li class="first"><a href="http://www.hellanzb.com/">hellanzb</a></li>
				<li><a href="http://www.binnews.in/">BinnewZ France</a></li>
				<li><a href="http://www.binsearch.info/">Binsearch</a></li>
				<li><a href="http://github.com/krunk/hellaruby/tree/master">hellaruby</a></li>
				<li><a href="http://redhanded.hobix.com/inspect/noXpathOnMessyHtmlIsJustAsEasyInRuby.html">RedHanded>>XPath HTML</a></li>
                <li><a href="http://github.com/mislav/will_paginate/tree/master">mislav/will_paginate</a></li>
				</ul>

			</div>

		</div>

		<br class="clear" />

	</div>

</div>

<div id="footer" class="fluid">
	Copyright &copy; 2009 hellaworld-rev. All rights reserved. Design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a>.
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9635359-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>
